package com.xgzit.common.constant;

/**
 * @Author xgz
 * @Date 2021-04-09 21:55
 */

public class WareConstant {
    /**
     * 采购单状态枚举
     * */
    public enum PurchaseStatusEnum{
        /**
         * 采购单状态：新建
         */
        CREATE(0, "新建"),
        /**
         * 采购单状态：已分配
         */
        ASSIGNED(1, "已分配"),
        /**
         * 采购单状态：已领取
         */
        RECEIVE(2, "已领取"),
        /**
         * 采购单状态：已完成
         */
        FINISH(3, "已完成"),
        /**
         * 采购单状态：有异常
         */
        HAS_ERROR(4, "有异常");

        private int code;
        private String msg;

        PurchaseStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;

        }
        public int getCode() {
            return code;
        }
        public String getMsg() {
            return msg;
        }

    }

    /**
     * 采购单详情状态枚举
     * */
    public enum PurchaseDetailStatusEnum{
        /**
         * 采购单详情状态：新建
         */
        CREATE(0, "新建"),
        /**
         * 采购单详情状态：已分配
         */
        ASSIGNED(1, "已分配"),
        /**
         * 采购单详情状态：正在采购
         */
        BUYING(2, "正在采购"),
        /**
         * 采购单详情状态：已完成
         */
        FINISH(3, "已完成"),
        /**
         * 采购单详情状态：采购异常
         */
        HAS_ERROR(4, "采购异常");

        private int code;
        private String msg;

        PurchaseDetailStatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;

        }
        public int getCode() {
            return code;
        }
        public String getMsg() {
            return msg;
        }

    }
}
